<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>

<%@include file="/common/taglibs.jsp" %>
<%@include file="/common/javascript.jsp" %>

<html>
<head>
<meta charset="utf-8">
<title>市区统计详情</title>
    <style type="text/css">	
		/*提交表单*/
		.l-table-edit {font-size:12px; color:#555; padding:5px 5px 5px 0px;}
		.l-table-edit-td{ padding:5px; padding-left:0;}
	</style>
    
    <script type="text/javascript">
    	var isSelectedMap=true;

		function saveInfo(){
			if(mainform.check()){
				$("#mainform").form('submit',{
					url:'ecityAction_save',
					success: function(data){  
						var data = eval('(' + data + ')'); 
						if (!data.success){ //保存失败  
							$.messager.alert('提示',"错误"+data.message,"info");
        				}else{//保存成功
        					$.messager.alert('提示',data.message,"info",function(){
        						//刷新主界面顶部城市名字
        						window.parent.refreshCity($("#name").val(),$("#remark").val());
        					});
        				} 
					}
				});
			}
        }
	</script>
</head>

<body style="margin:0px; overflow-style:clear; padding:0px; overflow: hidden;">
	<form name="mainform" method="post"  id="mainform"> 
    	<table cellpadding="0" cellspacing="0" class="l-table-edit" style="width: 95%; margin-top:0px; margin-left:15px; column-gap:5px">
            <tr>
            	<td align="right" class="l-table-edit-td"><label class="red">*</label>城市名称:</td>
                <td align="left" class="l-table-edit-td">
                	<input name="ecity.name" type="text" id="name" value="${ecity.name }" datatype="*" altercss="gray" tip="请填写项目名称" />
                	<input name="ecity.id" type="hidden" id="id" value="${ecity.id }"/>
                </td>
             </tr>
             <tr>
            	<td align="right" class="l-table-edit-td">版权信息:</td>
                <td align="left" class="l-table-edit-td" colspan="3">
                	<textarea name="ecity.remark" id="remark" rows="5" style="width: 90%" >${ ecity.remark }</textarea>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
